<jsp:useBean id="user" class="com.model.UserData" scope="session"/> 
<%
	String tgtPage = null;
	if (user.getUsername()== null) {
		tgtPage = "/SpringMVC/";
		response.sendRedirect(tgtPage);
	}
%>
<HTML>
<BODY>
You entered<BR>
Name: <%= user.getUsername() %><BR>
Email: <%= user.getEmail() %><BR>
Age: <%= user.getAge() %><BR>
</BODY>
</HTML>
